class AddSeedData < ActiveRecord::Migration
  def self.up
    Question.create (
       :desc => 'What to read?',
       :tag  => 'What to read?'
    )
    Question.create (
       :desc => 'What to wear?',
       :tag  => 'What to wear?'
    )
    Question.create (
       :desc => 'Where to eat?',
       :tag  => 'Where to eat?'
    )
    Question.create (
       :desc => 'Where to go?',
       :tag  => 'Where to go?'
    )
    Question.create (
       :desc => 'What to eat?',
       :tag  => 'What to eat?'
    )
    Question.create (
       :desc => 'What to do?',
       :tag  => 'What to do?'
    )
    Question.create (
       :desc => 'What to watch?',
       :tag  => 'What to watch?'
    )
    Answer.create (
       :question_id => 1,
       :desc => 'Try <a href="http://www.reddit.com">reddit</a>',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    )
    Answer.create (
       :question_id => 1,
       :desc => 'How about book?  Maybe <em>To Kill A Mockingbird</em>',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    )
    Answer.create (
       :question_id => 2,
       :desc => 'Clothes are always a good idea.  Maybe something blue.',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 2,
       :desc => 'A short skirt and a long jacket',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 3,
       :desc => 'Wendy\'s has some of the best fast food.',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 3,
       :desc => 'Have a picnic in the park',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 4,
       :desc => 'Get tickets to a concert, any concert, even one of those free ones for a band you\'ve never heard of.',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 4,
       :desc => 'Take a drive down a road you\'ve never been on.',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 5,
       :desc => 'Fried rice and some vegetables',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 5,
       :desc => 'BBQ squid on a stick',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 6,
       :desc => 'Write an email to an old friend',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 6,
       :desc => 'Draw a picture of whatever is behind you',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 7,
       :desc => 'Try a new anime series',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
    Answer.create (
       :question_id => 7,
       :desc => 'A documentary on whales',
       :helpful => 0, :unhelpful => 0,
       :author => 'Anonymous'
    ) 
  end

  def self.down
    Question.delete_all
    Answer.delete_all
  end
end
